home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / PowerTalk Access Modules / Sample SMSAM / SampleSMSAM Source / HFSHalfGateway / HFSRecipient.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-28  |  2.4 KB  |  78 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        HFSRecipient.h
  3.  
  4.     Copyright:    © 1991-1994 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Part of the AOCE Sample SMSAM Package.  Consult the license
  8.     which came with this software for your specific legal rights.
  9.  
  10. */
  11.  
  12.  
  13.  
  14. #ifndef __HFSRECIPIENT__
  15. #define __HFSRECIPIENT__
  16.  
  17. #ifndef __RECIPIENT__
  18. #include "Recipient.h"
  19. #endif
  20.  
  21. /***********************************|****************************************/
  22.  
  23. class THFSRecipient : public TRecipient 
  24. {
  25. public:
  26.                                     THFSRecipient(const RString& recipientName, Boolean responsible);    
  27.                                     ~THFSRecipient();
  28.     
  29.         //    Recipient Name/Type or CID Methods
  30.         //    ==================================
  31.         virtual Boolean             GetRecipientName (TRString& name) const;
  32.         virtual Boolean             GetRecipientType (TRString& type) const;
  33.     
  34.         virtual Boolean             GetCID (CreationID& cid) const;
  35.  
  36.         //    Path Information
  37.         //    ================
  38.         virtual Boolean                IsPathInfoPresent () const;    //    return true if the recipient has any path information
  39.         virtual Boolean                IsPathInfoOptional () const; // return true if the path info is present but not required
  40.         virtual Boolean                IsNameAndPathUnique () const; // return true if the name & path info uniquely identify a recipient
  41.         
  42.         virtual unsigned short         GetPathNameCount () const;
  43.         virtual void                 GetPathNameItem (unsigned short item, TRString& nodeName) const;
  44.         
  45.         virtual Boolean             GetDirectoryName (DirectoryName& directoryName) const;
  46.  
  47.         //    Recipient Extension Data
  48.         //    ======================
  49.         virtual Boolean                IsAddressTypePresent () const;    // return true if an address type is present
  50.         virtual OSType                 GetAddressType () const;
  51.         virtual unsigned long         GetExtensionDataSize () const;
  52.         virtual void                 GetExtensionData (unsigned long offset, void *buffer, unsigned long bufferSize) const;
  53.     
  54.         //    Recpient Status
  55.         //    ===============
  56.         virtual Boolean             GetResponsible () const;
  57.         virtual Boolean             SetStatus ( RecipientStatusSet );
  58.         virtual RecipientStatusSet     GetStatus () const;
  59.  
  60.         //    Debugging purposes only
  61.         virtual ostream&             DescribeSubclass(ostream& ) const;
  62.         virtual ostream&             operator >> (ostream& s) const;
  63.  
  64. private:
  65.     RString                         fName;
  66.     Boolean                            fResponsible;
  67.     DirectoryName                    fDirectoryName;
  68.     short                            fPathNameElements;
  69.     RStringPtr                         fPathNameItems[8];
  70.     OSType                            fRecipientType;
  71.     Ptr                                fExtensionValue;
  72.     RecipientStatusSet                fStatus;
  73. };
  74.  
  75. /***********************************|****************************************/
  76.  
  77. #endif    // __HFSRECIPIENT__
  78.